<?php
abstract class Core_Video_Abstract{
	
	const VENDOR_YOUTUBE		= 'YouTube';
	
	const THUMB_TYPE_DEFAULT	= 'default';
	const THUMB_TYPE_BIGSIZE	= '0';
	
	protected $_name;
	protected $_src;
	protected $_width = 800;
	protected $_height = 450;
	protected $_frameBorder		= 0;
	protected $_allowFullScreen	= TRUE;
	
	public function __construct(array $option = null)
	{
		if( isset($option['src']) )
		{
			$this->_src		= $option['src'];
		}
		if( isset($option['width']) )
		{
			$this->_width	= $width;
		}		
		if( isset($option['height']) )
		{
			$this->_height	= $height;
		}
	}
	
	public function getAllowFullScreen()
	{
		return $this->_allowFullScreen;
	}
	public function setAllowFullScreen($value = true)
	{
		$this->_allowFullScreen = $value;
		return $this;
	}
	public function getFrameBorder()
	{
		return $this->_frameBorder;
	}
	public function setFrameBorder($value = 0)
	{
		$this->_frameBorder = $value;
		return $this;
	}
	abstract public function getEmbededdCode($width, $height);
	abstract public function getThumbnailUrl();
	abstract public function getImageUrl();
	abstract protected function getVideoCode();
	abstract public function isExist();
}